﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace EZCRS.HCMS.Entity
{
    [DataFieldAttribute("HCRS_AIR")]
    public class HCRS_AIR
    {
        public HCRS_AIR()
        { }


        #region Model
        private int? _id;
        private int? _property_id;
        private string _level;
        private string _roomcode;
        private string _plancode;
        private string _source;
        private int? _year;
        private byte[] _january_ai;
        private byte[] _february_ai;
        private byte[] _march_ai;
        private byte[] _april_ai;
        private byte[] _may_ai;
        private byte[] _june_ai;
        private byte[] _july_ai;
        private byte[] _august_ai;
        private byte[] _september_ai;
        private byte[] _october_ai;
        private byte[] _november_ai;
        private byte[] _december_ai;
        private byte[] _january_r;
        private byte[] _february_r;
        private byte[] _march_r;
        private byte[] _april_r;
        private byte[] _may_r;
        private byte[] _june_r;
        private byte[] _july_r;
        private byte[] _august_r;
        private byte[] _september_r;
        private byte[] _october_r;
        private byte[] _november_r;
        private byte[] _december_r;

        public HCRS_AIR(DataRow dr)
        {
            if (dr != null)
            {
                _id = Convert.ToInt32(dr["id"].ToString());
                if (dr["property_id"].ToString() != "")
                    _property_id = Convert.ToInt32(dr["property_id"].ToString());
                _level = dr["level"].ToString();
                _roomcode = dr["roomcode"].ToString();
                _plancode = dr["plancode"].ToString();
                _source = dr["source"].ToString();
                if (dr["year"].ToString() != "")
                    _year = Convert.ToInt32(dr["year"].ToString());
                 _january_ai = (byte[])dr["january_ai"];
                 _february_ai = (byte[])dr["february_ai"];
                 _march_ai = (byte[])dr["march_ai"];
                 _april_ai = (byte[])dr["april_ai"];
                 _may_ai = (byte[])dr["may_ai"];
                 _june_ai = (byte[])dr["june_ai"];
                 _july_ai = (byte[])dr["july_ai"];
                 _august_ai = (byte[])dr["august_ai"];
                 _september_ai = (byte[])dr["september_ai"];
                 _october_ai = (byte[])dr["october_ai"];
                 _november_ai = (byte[])dr["november_ai"];
                 _december_ai = (byte[])dr["december_ai"];
                 _january_r = (byte[])dr["january_r"];
                 _february_r = (byte[])dr["february_r"];
                 _march_r = (byte[])dr["march_r"];
                 _april_r = (byte[])dr["april_r"];
                 _may_r = (byte[])dr["may_r"];
                 _june_r = (byte[])dr["june_r"];
                 _july_r = (byte[])dr["july_r"];
                 _august_r = (byte[])dr["august_r"];
                 _september_r = (byte[])dr["september_r"];
                 _october_r = (byte[])dr["october_r"];
                 _november_r = (byte[])dr["november_r"];
                 _december_r = (byte[])dr["december_r"];

            }
        }

        /// <summary>
        /// 
        /// </summary>
        public int? Id
        {
            set { _id = value; }
            get { return _id; }
        }

        /// <summary>
        /// 
        /// </summary>
        public int? Property_id
        {
            set { _property_id = value; }
            get { return _property_id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Level
        {
            set { _level = value; }
            get { return _level; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string RoomCode
        {
            set { _roomcode = value; }
            get { return _roomcode; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string PlanCode
        {
            set { _plancode = value; }
            get { return _plancode; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Source
        {
            set { _source = value; }
            get { return _source; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Year
        {
            set { _year = value; }
            get { return _year; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] January_AI
        {
            set { _january_ai = value; }
            get { return _january_ai; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] February_AI
        {
            set { _february_ai = value; }
            get { return _february_ai; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] March_AI
        {
            set { _march_ai = value; }
            get { return _march_ai; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] April_AI
        {
            set { _april_ai = value; }
            get { return _april_ai; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] May_AI
        {
            set { _may_ai = value; }
            get { return _may_ai; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] June_AI
        {
            set { _june_ai = value; }
            get { return _june_ai; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] July_AI
        {
            set { _july_ai = value; }
            get { return _july_ai; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] August_AI
        {
            set { _august_ai = value; }
            get { return _august_ai; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] September_AI
        {
            set { _september_ai = value; }
            get { return _september_ai; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] October_AI
        {
            set { _october_ai = value; }
            get { return _october_ai; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] November_AI
        {
            set { _november_ai = value; }
            get { return _november_ai; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] December_AI
        {
            set { _december_ai = value; }
            get { return _december_ai; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] January_R
        {
            set { _january_r = value; }
            get { return _january_r; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] February_R
        {
            set { _february_r = value; }
            get { return _february_r; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] March_R
        {
            set { _march_r = value; }
            get { return _march_r; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] April_R
        {
            set { _april_r = value; }
            get { return _april_r; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] May_R
        {
            set { _may_r = value; }
            get { return _may_r; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] June_R
        {
            set { _june_r = value; }
            get { return _june_r; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] July_R
        {
            set { _july_r = value; }
            get { return _july_r; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] August_R
        {
            set { _august_r = value; }
            get { return _august_r; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] September_R
        {
            set { _september_r = value; }
            get { return _september_r; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] October_R
        {
            set { _october_r = value; }
            get { return _october_r; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] November_R
        {
            set { _november_r = value; }
            get { return _november_r; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] December_R
        {
            set { _december_r = value; }
            get { return _december_r; }
        }
        #endregion Model
    }
}
